/**
 * 帮助
 */
const routes =
  process.env.NODE_ENV !== 'production'
    ? [
        {
          path: 'dataTablePickerDemo',
          name: 'DataTablePickerDemo',
          component: () => import('@/views/playground/DataTablePickerDemo'),
          props: true,
          meta: {
            icon: 'el-icon-setting',
            title: 'DataTablePickerDemo'
          }
        },
        {
          path: 'formViewDemo/:id',
          name: 'FormViewDemo',
          component: () => import('@/views/playground/FormViewDemo'),
          props: true,
          meta: {
            icon: 'el-icon-setting',
            title: 'FormViewDemo'
          }
        },
        {
          path: 'playground',
          name: 'Playground',
          component: () => import('@/views/playground/Playground'),
          meta: {
            icon: 'el-icon-setting',
            title: 'Playground'
          }
        },
        {
          path: 'elIcons',
          name: 'ELIcons',
          component: () => import('@/views/playground/ElIcons'),
          meta: {
            icon: 'el-icon-setting',
            title: 'ElementUI 图标'
          }
        },
        {
          path: 'fyIcons',
          component: () => import('@/views/playground/FyIcons'),
          meta: {
            icon: 'el-icon-setting',
            title: 'FyIcon 图标'
          }
        },
        {
          path: 'echartsDemo',
          name: 'EChartsDemo',
          component: () => import('@/views/playground/echarts/EChartsDemo'),
          meta: {
            icon: 'el-icon-setting',
            title: 'ECharts组件使用示例'
          }
        },
        {
          path: 'color',
          name: 'Color',
          component: () => import('@/views/playground/Color'),
          meta: {
            icon: 'el-icon-setting',
            title: '预置颜色'
          }
        },
        {
          path: 'editableTreeDemo',
          name: 'EditableTreeDemo',
          component: () => import('@/views/playground/EditableTreeDemo'),
          meta: {
            icon: 'el-icon-setting',
            title: '可编辑树'
          }
        },
        {
          path: 'pageableTableDemo',
          name: 'PageableTableDemo',
          component: () => import('@/views/playground/PageableTableDemo'),
          meta: {
            icon: 'el-icon-setting',
            title: '分页表格'
          }
        },
        {
          path: 'dialogDemo',
          name: 'DialogDemo',
          component: () => import('@/views/playground/DialogDemo'),
          meta: {
            icon: 'el-icon-folder-opened',
            title: '对话框'
          }
        },
        {
          path: 'xFileExplorerLiteDemo',
          name: 'XFileExplorerLiteDemo',
          component: () => import('@/views/playground/XFileExplorerLiteDemo'),
          meta: {
            icon: 'el-icon-folder-opened',
            title: '文件管理器'
          }
        },
        // {
        //   path: 'doodle',
        //   name: 'Doodle',

        //   meta: {
        //     icon: 'el-icon-lx-skinfill',
        //     title: '涂鸦'
        //   }
        // },
        {
          path: 'privilegeDemo',
          name: 'PrivilegeDemo',
          component: () => import('@/views/playground/PrivilegeDemo'),
          meta: {
            icon: 'el-icon-setting',
            title: '权限相关'
          }
        },
        {
          path: 'markdownDemo',
          name: 'MarkdownDemo',
          component: () => import('@/views/playground/MarkdownDemo'),
          meta: {
            icon: 'el-icon-setting',
            title: 'MarkdownDemo'
          }
        },
        {
          path: 'formDemo',
          name: 'FormDemo',
          component: () => import('@/views/playground/FormDemo'),
          meta: {
            icon: 'el-icon-tickets',
            title: '表单示例'
          }
        },
        {
          path: 'formNavDemo',
          name: 'FormNavDemo',
          component: () => import('@/views/playground/FormNavDemo'),
          meta: {
            icon: 'el-icon-tickets',
            title: '表单示例'
          }
        },
        {
          path: 'codeMirrorDemo',
          name: 'CodeMirrorDemo',
          component: () => import('@/views/playground/CodeMirrorDemo'),
          meta: {
            icon: 'el-icon-tickets',
            title: 'CodeMirrorDemo'
          }
        },
        {
          path: 'avueFormTest',
          name: 'AvueFormTest',
          component: () => import('@/views/playground/AvueFormTest.vue'),
          meta: {
            icon: 'el-icon-tickets',
            title: 'AvueFormTest'
          }
        },
        {
          path: 'testPrint',
          name: 'TestPrint',
          component: () => import('@/views/playground/TestPrint.vue'),
          meta: {
            icon: 'el-icon-tickets',
            title: 'TestPrint'
          }
        },
        {
          path: 'documentEditorDemo',
          name: 'DocumentEditorDemo',
          component: () => import('@/views/playground/DocumentEditorDemo.vue'),
          meta: {
            icon: 'el-icon-tickets',
            title: 'DocumentEditorDemo'
          }
        },
        {
          path: 'codeGen',
          name: 'CodeGen',
          component: () => import('@/views/playground/CodeGen.vue'),
          meta: {
            icon: 'el-icon-tickets',
            title: '代码生成'
          }
        }
      ]
    : []

export default routes
